<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div id="box">
        <div v-html="temp"></div>
        <div v-text="temp"></div>
    </div>
    <script src="js/vue.js"></script>
    <script>
        let vm = new Vue({
            el:"#box",
            data:{
                temp:"<div>张三</div>"
            }
        })
    </script>
    <!-- 
        v-html：更新元素的innerHTML
        v-text:更新元素的 textContent,不解析 html
    -->
</body>
</html>